package Thread;



class SingleHungry{
    private static SingleHungry singleHungry=new SingleHungry();
    public static SingleHungry getSingleHungry(){
        return singleHungry;
    }

    private SingleHungry() {
    }
}
public class SingleHug {
    public static void main(String[] args) {
SingleHungry singleHungry1=SingleHungry.getSingleHungry();
SingleHungry singleHungry2=SingleHungry.getSingleHungry();
        System.out.println(singleHungry2==singleHungry1);
    }
}
